package Application.File;

import javafx.stage.FileChooser;
import javafx.stage.Stage;

import java.io.File;

public class FileSave {
    public static File fileChoose(Stage primaryStage){
        FileChooser fileChooser = new FileChooser();
        fileChooser.setTitle("选择保存图片的位置");

        File file = fileChooser.showSaveDialog(primaryStage);
        return file;
    }
}
